Cleanup after the bootloader even if the domain building fails.
authorEwan Mellor <ewan@xensource.com>
Mon, 20 Nov 2006 16:59:07 +0000 (16:59 +0000)
committerEwan Mellor <ewan@xensource.com>
Mon, 20 Nov 2006 16:59:07 +0000 (16:59 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 295925d1da57131cf8a488a9b509115def43dad9..532ce81264cb748d180286f1afcde44306515ea9 100644 (file)
@@ -1326,6 +1326,8 @@ class XendDomainInfo:
             self._stateSet(DOM_STATE_RUNNING)
         except RuntimeError, exn:
             log.exception("XendDomainInfo.initDomain: exception occurred")
+            if self.info['bootloader'] and self.image is not None:
+                self.image.cleanupBootloading()
             raise VmError(str(exn))